package com.ark.cloud.javacallnative.modules.storage.service.impl;

import com.ark.cloud.javacallnative.entity.JammerCmd;
import com.ark.cloud.javacallnative.modules.storage.mapper.JammerCmdMapper;
import com.ark.cloud.javacallnative.modules.storage.service.JammerCmdService;
import com.ark.cloud.javacallnative.util.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/2  下午5:50
 * @description
 */
@Service
public class JammerCmdServiceImpl implements JammerCmdService {
    @Autowired
    JammerCmdMapper jammerCmdDao;
    @Override
    public void saveJammerCmdInfo(JammerCmd jammerCmd) {
        // 设置UUID
        jammerCmd.setId(UUIDUtil.next());

        System.out.println("jammerCmd: {}"+jammerCmd.toString());

        jammerCmdDao.insert(jammerCmd);
    }
}
